﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSharpDemo
{
    public class YaoYaoJi
    {
        /// <summary>
        /// 剩余时间
        /// </summary>
        public int timeLeft;


        /// <summary>
        /// 投币
        /// </summary>
        /// <param name="money"></param>
        public void Toubi(int money)
        {
            if (money <= 0)
            {
                System.Windows.Forms.MessageBox.Show("小子你又来作弊了");

            }
            else
            {
                timeLeft = timeLeft + 300 * money;//增加时间
            }
        }

    }
}
